The current code assumes that the resource has been installed,
which isn't the case when running distcheck.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/255
let _ifaceResource = null;
function loadInterfaceXML(iface) {
if (!_ifaceResource) {
- // don't use global.datadir so the method is usable from tools
- let path = Config.PKGDATADIR + '/gnome-shell-dbus-interfaces.gresource';
+ // don't use global.datadir so the method is usable from tests/tools
+ let dir = GLib.getenv ('GNOME_SHELL_DATADIR') || Config.PKGDATADIR;
+ let path = dir + '/gnome-shell-dbus-interfaces.gresource';
_ifaceResource = Gio.Resource.load(path);
_ifaceResource._register();
}